diagnosticsChannel.subscribe is not a function